package com.zjp.service;

import org.springframework.stereotype.Service;

@Service
public class DelayOrderService {


   /* @Autowired
    RocketMQTemplate rocketMQTemplate;

    static AtomicLong atomicLong = new AtomicLong();
    static List<String> shoppingCart = Arrays.asList("苹果", "桔子");

    public Order addOrder() {
        Order order = new Order();
        order.setOrderId(atomicLong.incrementAndGet());
        order.setName(RandomUtil.randomEle(shoppingCart));
        order.setOrderAmount(RandomUtil.randomBigDecimal(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP));
        order.setAddTime(DateUtil.date());
        order.setOrderStatus(1);
        order.setPayStatus(1);
        return order;
    }*/
}
